package com.zlsy.thread.future;

/**
 * @author zhouliang
 * @date 2020/10/10 8:50
 * 演示runable在run方法中无法抛出checked exception
 */
public class RunableCantThrowsException {
    public static void main(String[] args) {
        Runnable runnable = new Runnable() {
            @Override
            public void run() {
                try {
                    throw new Exception();
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        };
    }
}
